# Maintainer: Martijn Braam <martijn@brixit.nl>
# Contributor: Martijn Braam <martijn@brixit.nl>
pkgname=pully
pkgver=1.0.0
pkgrel=0
pkgdesc="Gitlab webhook receiver daemon"
url="https://git.sr.ht/~martijnbraam/pully"
arch="all"
license="GPL-3.0-only"
source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~martijnbraam/pully/archive/$pkgver.tar.gz
	pully.confd
	pully.initd
	"
depends="python3"
subpackages="$pkgname-openrc"

package() {
	install -D -m755 "$builddir"/pully.py \
		"$pkgdir"/usr/bin/pully

	install -D -m644 "$srcdir"/pully.confd \
		"$pkgdir"/etc/conf.d/pully
	install -D -m755 "$srcdir"/pully.initd \
		"$pkgdir"/etc/init.d/pully
}

sha512sums="
dd59b23375a969bd1e76d9f024abd63d9c64993e536d879bb37b33ab8963772b6f6e067fb10a5008b84ef00ab633668f7ce6bbc881d8bd49748855f6dc7d7921  pully-1.0.0.tar.gz
5bea58d6a7359342238ae2b6e1a2c220c2e95ba860fd69460f8053c804fac3f1600bb1b02e2d9464f14d22d095159781a666070a82618191b19b590fd7844274  pully.confd
d668da01a75793d0d0f4fb68aa0b750fcbf022060d0d5b76291e50f11c222b2c7a616de015dba4b43b6537621445519ee239edc5851b23f1da67649a43499f79  pully.initd
"
